import Layout from '../layout/index.vue'
export default [
    {
      path: '/redirect',
      component: Layout,
      hideMenu: true,
      children: [
        {
          path: ':path(.*)',
          component: () => import('../views/redirect/index.vue'),
          meta: { title: '重定向', hideMenu: true }
        }
      ]
    },
    {
      path: '/login',
      name: 'Login',
      component: () => import('../views/Login.vue'),
      hideMenu: true,
      meta: { title: '登录' }
    },
    {
      path: '/',
      component: Layout,
      redirect: '/dashboard',
      hideMenu: true,
      children: [
        {
          path: 'dashboard',
          icon:'DashboardOutlined',
          name: 'Dashboard',
          component: () => import('../views/dashboard/index.vue'),
          meta: {
            title: '仪表盘',
            affix: true,
            keepAlive: true
          }
        }
      ]
    },
    {
      path: '/forums',
      component: Layout,
      name: 'Forums',
      icon:'FileTextOutlined',
      label: '帖子管理',
      children: [
        {
          path: 'list',
          key:'/forums/list',
          name: 'ForumsList',
          label: '帖子管理',
          component: () => import('../views/forums/list.vue'),
          meta: {
            title: '帖子管理',
            keepAlive: true
          }
        },{
          path: 'report',
          key:'/forums/report',
          name: 'ForumsReport',
          label: '举报管理',
          component: () => import('../views/forums/report.vue'),
          meta: {
            title: '举报管理',
            keepAlive: true
          }
        }
      ]
    },
  {
    path: '/content',
    component: Layout,
    name: 'Content',
    redirect: '/system/content',
    icon:'FileTextOutlined',
    label: '内容管理',
    children: [

      {
        path: 'interview_questions',
        key:'/content/interview_questions',
        name: 'Interview_questions',
        label: '面试题管理',
        component: () => import('../views/content/interview_questions/index.vue'),
        meta: {
          title: '面试题管理',
          keepAlive: true
        }
      },
      {
        path: 'position',
        key:'/content/position',
        name: 'Position',
        label: '岗位管理',
        component: () => import('../views/content/position/index.vue'),
        meta: {
          title: '岗位管理',
          keepAlive: true
        }
      }
    ]
  },
    {
      path: '/system',
      component: Layout,
      name: 'System',
      redirect: '/system/notice',
      icon:'SettingOutlined',
      label: '系统管理',
      children: [
        {
          path: 'user',
          key:'/system/user',
          name: 'User',
          label: '用户管理',
          component: () => import('../views/system/user/index.vue'),
          meta: {
            title: '用户管理',
            keepAlive: true
          }
        },
        {
          path: 'dict',
          key:'/system/dict',
          name: 'Dict',
          label: '字典管理',
          component: () => import('../views/system/dict/index.vue'),
          meta: {
            title: '字典管理',
            keepAlive: true
          }
        },
        {
          path: 'article',
          key:'/system/article',
          name: 'Article',
          label: '文章管理',
          component: () => import('../views/system/article/index.vue'),
          meta: {
            title: '文章管理',
            keepAlive: true
          }
        }
      ]
    },
    {
      path: '/profile',
      component: Layout,
      hideMenu: true,
      children: [
        {
          path: '',
          name: 'Profile',
          component: () => import('@/views/profile/index.vue'),
          meta: {
            title: '个人中心',
            hideMenu: true
          }
        }
      ]
    }
]
